import { http } from '@/utils/http'
/**
 * 搜索接口
 */
export const searchAPI = (value: string) => {
  return http({
    method: 'GET',
    url: `search`,
    data: {
      keywords: value,
    },
  })
}
/*
 * 热搜列表接口
 */
export const searchHotAPI = () => {
  return http({
    method: 'GET',
    url: `search/hot`,
  })
}
